package com.uep.controller;

import com.uep.entity.QuestionInformation;
import com.uep.service.QuestionInformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by XQ on 2017/2/23.
 */
@RestController
public class QuestionInformationController {
    @Autowired
    QuestionInformationService questionInformationService;

    @ResponseBody
    @RequestMapping(value = "/questions",method = RequestMethod.GET)
    public List<QuestionInformation> getAll(){
        return questionInformationService.findAll();
    }
}
